package com.dylan.springcloud.common.util;

import java.util.concurrent.TimeUnit;

/**
 * Created by Dylan on 2018/7/12.
 */
public class SleepUtils {

    public static void seconds(long seconds) {
        try {
            TimeUnit.SECONDS.sleep(seconds);
        } catch (InterruptedException ignored) {
        }
    }

    public static void milliseconds(long milliseconds) {
        try {
            TimeUnit.MILLISECONDS.sleep(milliseconds);
        } catch (InterruptedException ignored) {
        }
    }
}
